get Feature State
abstract fun getFeatureState(@NonNull() sourceId: String, @Nullable() sourceLayerId: String, @NonNull() featureId: String, @NonNull() callback: QueryFeatureStateCallback)
Content copied to clipboard
Gets the state map of a feature within a style source.Note that updates to feature state are asynchronous, so changes made by other methods might not beimmediately visible.
Parameters
sourceId
The style source identifier.
sourceLayerId
The style source layer identifier (for multi-layer sources such as vector sources).
featureId
The feature identifier of the feature whose state should be queried.
callback
The `query feature state callback` called when the query completes.